package com.hui.entity.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hui.util.module.customizeserializer.BigDecimalSerializer;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 计算订单金额使用的Vo
 */
@Data
@Builder
public class ComputeVo {

    private BigDecimal couponPrice;

    private BigDecimal deductionPrice;

    private BigDecimal payPostage;
    /**
     * 用户支付的价格
     */
    @JsonSerialize(
            using = BigDecimalSerializer.class
    )
    private BigDecimal payPrice;
    /**
     * 订单总价
     */
    @JsonSerialize(
            using = BigDecimalSerializer.class
    )
    private BigDecimal totalPrice;

    private Double usedIntegral;

    private BigDecimal payIntegral;

}
